import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import 'vite-plugin-svg-icons/register';
import '@/styles/global.less';
import 'ant-design-vue/dist/antd.css';

const app = createApp(App);

const isTest: boolean = import.meta.env.VITE_APP_ENV === 'test';

const AntdUi = () => import('@/packages');
AntdUi().then((res: any) => {
  app.use(res.default);
  app.use(router);
  app.mount('#app');
});
